From: Amir E. Aharoni Date: Tue, 27 Mar 2012 12:09:25 +0000 (+0200) Subject: Improved the comment about Special:Contributions. X-Git-Tag: 1.31.0-rc.0~24112^2 X-Git-Url: http://git.cyclocoop.org/%7D%7Cconcat%7B?a=commitdiff_plain;h=5644334e2345da1920690a726d0907e4eaff17aa;p=lhc%2Fweb%2Fwiklou.git Improved the comment about Special:Contributions. It was prompted by an IRC discussion with SrikanthLogic, who found the comment hard to understand. Change-Id: Idd686257bc4d44f93e06b5645bdc1531bb2b4a2e --- diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index d08b7eff75..511443f016 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -581,10 +581,12 @@ class SkinTemplate extends Skin { ); # We need to do an explicit check for Special:Contributions, as we - # have to match both the title, and the target (which could come - # from request values or be specified in "sub page" form. The plot + # have to match both the title, and the target, which could come + # from request values (Special:Contributions?target=Jimbo_Wales) + # or be specified in "sub page" form + # (Special:Contributions/Jimbo_Wales). The plot # thickens, because the Title object is altered for special pages, - # so doesn't contain the original alias-with-subpage. + # so it doesn't contain the original alias-with-subpage. $origTitle = Title::newFromText( $request->getText( 'title' ) ); if( $origTitle instanceof Title && $origTitle->isSpecialPage() ) { list( $spName, $spPar ) = SpecialPageFactory::resolveAlias( $origTitle->getText() );